<cfsetting enablecfoutputonly="true">
<cfswitch expression="#ThisTag.ExecutionMode#">
	<!--- Start tag processing --->
	<cfcase value="start">
		<cfparam name="attributes.name" default="" />
		<cfparam name="attributes.header" default="#attributes.name#" />
		<cfparam name="attributes.width" default="100" />
		<cfparam name="attributes.sortable" default="true" />
		<cfparam name="attributes.align" default="left" />
		<cfparam name="attributes.searchable" default="false" />
		<cfparam name="attributes.hide" default="false" />
		<cfparam name="caller.first" default="1" />
		<cfparam name="caller.searchablecols" default="" />
		<cfparam name="caller.searchablecolsnames" default="" />
		<cfif caller.gridtype IS "ajax">
			<cfif NOT caller.first><cfoutput>,</cfoutput></cfif>
			<cfoutput>{display: '#attributes.header#', name : '#attributes.name#', width : #attributes.width#, sortable : #attributes.sortable#, align: '#attributes.align#', hide: #attributes.hide#}
			</cfoutput>
		<cfelse>
			<cfoutput><th>#attributes.header#</th></cfoutput>
		</cfif>
		<cfset caller.first = 0 />
		<cfset caller.hasColumns = 1 />	
		<cfset caller.cols = listappend(caller.cols,attributes.name) />	
		<cfif attributes.searchable>
		<cfset caller.searchablecols = listappend(caller.searchablecols,attributes.name) />	
		<cfset caller.searchablecolsnames = listappend(caller.searchablecolsnames,attributes.header) />	
		</cfif>
	</cfcase>
</cfswitch>
<cfsetting enablecfoutputonly="false">